package com.itheima.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.dao.TestDao;
import com.itheima.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author nglsk
 * @version v1.0
 * @date 2019/11/18 15:31
 * @description TODO
 **/

@Transactional
@Service(interfaceClass = TestService.class)
public class TestServiceImpl implements TestService {

    @Autowired
    private TestDao testDao;
    /**
     * 查询所有用户
     *
     * @return
     */
    @Override
    public List<User> findAllUser() {
        return testDao.findAllUser();
    }
}
